package oa.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import jxl.common.Logger;
import oa.bean.Cart;
import oa.bean.Goods;
import oa.bean.Gw;
import oa.dao.GwMapper;
import oa.service.GwService;
@Service
public class GwServiceImpl implements GwService {
	Logger log = Logger.getLogger(GoodsServiceImpl.class);
	@Resource
	private GwMapper gwMapper;
	@Override
	public int insert(Gw gw) {
		
		return gwMapper.insert(gw);
	}

	@Override
	public int delete(Gw gw) {
	
		return gwMapper.delete(gw);
	}

	@Override
	public int update(Gw gw) {
		// TODO Auto-generated method stub
		return gwMapper.update(gw);
	}

	@Override
	public int updateKc(Goods goods) {
		// TODO Auto-generated method stub
		return gwMapper.updateKc(goods);
	}

	@Override
	public List<Gw> getAll(Gw gw) {
		// TODO Auto-generated method stub
		return gwMapper.getAll(gw);
	}

	@Override
	public List<Gw> getGwByGid(Gw gw) {
		// TODO Auto-generated method stub
		return gwMapper.getGwByGid(gw);
	}

	@Override
	public int deleteAll(Cart cart) {
		// TODO Auto-generated method stub
		return gwMapper.deleteAll(cart);
	}

	@Override
	public List<Goods> getGoods(Goods goods) {
		// TODO Auto-generated method stub
		return gwMapper.getGoods(goods);
	}

	@Override
	public int updateddzt(String id, String zt) {
		// TODO Auto-generated method stub
		return gwMapper.updateddzt(id, zt);
	}

}
